import { Base } from '../../utils/base.js';

class Model extends Base {
  constructor() {
    super();
  }

  getUserMessage(callback) {
    this.request({
      url: '/message',
      success: function (res) {
        callback && callback(res)
      }
    })
  }

  getUserMessageInfo(id,callback){
    this.request({
      url: '/message/'+id,
      success: function (res) {
        callback && callback(res)
      }
    })
  }
}

export { Model }